package com.ticket.sass.common.entity.tenant.enums

import com.baomidou.mybatisplus.annotation.IEnum

enum class OrderTicketStatus(private val value: Short, val tips: String) : IEnum<Short> {
    NON(0, "未出票"),
    ING(1, "出票中"),
    SUCCESS(2, "出票成功"),
    FAIL(3, "出票失败"),
    REFUND_ING(4, "退票中"),
    REFUND_SUCCESS(5, "已退票");

    override fun getValue(): Short {
        return value
    }

    companion object {
        fun valueOf(v: Short) = values().find { it.value == v } ?: error("未匹配到枚举")
    }
}